-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow the passing of options to RasterBand
#36
allow the passing of options to RasterBand
#36
Conversation
These get passed to `rasterio.open(...)` See https://github.com/rasterio/rasterio/blob/5e001a08beb747fef0b60b5ccdbf2e5a08da7e05/docs/topics/image_options.rst#creation-options, or the driver specific options on the GDAL documentation (e.g. https://gdal.org/drivers/raster/gtiff.html)
b925986
to
1136612
Compare
Codecov Report
@@ Coverage Diff @@
## main #36 +/- ##
=======================================
Coverage 97.86% 97.86%
=======================================
Files 9 9
Lines 797 797
=======================================
Hits 780 780
Misses 17 17
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this seems like a very useful addition
Ensure that driver-specific keyword options were not supplied when opening an existing raster band. These options can only be specified when creating a new raster.
Co-authored-by: Geoffrey Gunter <12984092+gmgunter@users.noreply.github.com>
Minor updates to rasterio creation options PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
These get passed to
rasterio.open(...)
See https://github.com/rasterio/rasterio/blob/5e001a08beb747fef0b60b5ccdbf2e5a08da7e05/docs/topics/image_options.rst#creation-options, or the driver specific options on the GDAL documentation (e.g. https://gdal.org/drivers/raster/gtiff.html)
Example usage:
In
dolphin
, I've got default creation options for the GTiff and ENVI drivers. These would get converted to rasterio-compatible ones with something likethen my
RasterBand
creation could be